home *** CD-ROM | disk | FTP | other *** search
-
- // JavaScript wrapper for r3tbase.h
- // Auto generated file, do not modify by hand
- // Copyright ⌐ 2004, Realsoft Graphics Oy
-
- var R3_TOOLBASE_H = 1;
- include("oops/r3root.js")
-
-
- var R3CLID_TOOLBASE = 336;
-
-
-
-
- // Description: This method is sent to the tool object when the user has played with
- // the selected object. The tool can check out the selected objects and decide whether or
- // not they are valid.
- // Virtual method
- // Returns: Boolean, TRUE enables 'apply' button so that the tool can be applied.
- // p1: Integer, number of selected objects
- // p3: r3List, list of selected objects
-
- R3TBASEM_UPDATESELECTED = 336002;
-
- function mR3TBASEM_UPDATESELECTED(p1, p3) {
- return DoA2(this.r3obj, 336002, p1, R3TID_INTEGER, 0, p3, R3TID_LIST, 0);
- }
-
- // Description: This method is sent to the tool when the user has clicked the 'Apply'.
- // Virtual method
- // p3: Tag[], R3TBASEA_Layer - current project R3TBASEA_PrimLayer - geometric primitives R3TBASEA_MaterialLayer - materials R3TBASEA_ImageLayer - images
-
- R3TBASEM_APPLY = 336003;
-
- function mR3TBASEM_APPLY(p3) {
- Do(this.r3obj, 336003, p3, R3TID_TAG, R3TNF_ARRAY);
- }
-
- // Description: This method is sent to the tool when the tool window is instanced. The
- // tool creates necessary gadgets here. Gadgets must be created inside one geometry manager, which is
- // later fetched using R3TBASEA_Controls tag.
- // Virtual method
- // p3: Tag[], R3TBASEA_Window
-
- R3TBASEM_CREATECONTROLS = 336004;
-
- function mR3TBASEM_CREATECONTROLS(p3) {
- Do(this.r3obj, 336004, p3, R3TID_TAG, R3TNF_ARRAY);
- }
-
-
-
-
- R3TBASEA_PrimLayer = 336500;
- function SetR3TBASEA_PrimLayer(value) {
- R3Set(this.r3obj, R3TBASEA_PrimLayer, value, R3TID_OBJECT, 0);
- }
-
- function GetR3TBASEA_PrimLayer() {
- return R3ToJS(R3Get(this.r3obj, R3TBASEA_PrimLayer, R3TID_OBJECT, 0));
- }
-
- R3TBASEA_Layer = 336501;
- function SetR3TBASEA_Layer(value) {
- R3Set(this.r3obj, R3TBASEA_Layer, value, R3TID_OBJECT, 0);
- }
-
- function GetR3TBASEA_Layer() {
- return R3ToJS(R3Get(this.r3obj, R3TBASEA_Layer, R3TID_OBJECT, 0));
- }
-
- var R3TBASEA_Window = 336502; // Object
- R3TBASEA_Tool = 336503;
- function GetR3TBASEA_Tool() {
- return R3Get(this.r3obj, R3TBASEA_Tool, R3TID_INTEGER, R3TNF_ARRAY);
- }
-
- R3TBASEA_Controls = 336504;
- function GetR3TBASEA_Controls() {
- return R3ToJS(R3Get(this.r3obj, R3TBASEA_Controls, R3TID_OBJECT, 0));
- }
-
- R3TBASEA_ImageLayer = 336505;
- function SetR3TBASEA_ImageLayer(value) {
- R3Set(this.r3obj, R3TBASEA_ImageLayer, value, R3TID_OBJECT, 0);
- }
-
- function GetR3TBASEA_ImageLayer() {
- return R3ToJS(R3Get(this.r3obj, R3TBASEA_ImageLayer, R3TID_OBJECT, 0));
- }
-
- R3TBASEA_UnitConverter = 336506;
- function SetR3TBASEA_UnitConverter(value) {
- R3Set(this.r3obj, R3TBASEA_UnitConverter, value, R3TID_OBJECT, 0);
- }
-
- R3TBASEA_ProgressIndicator = 336507;
- function SetR3TBASEA_ProgressIndicator(value) {
- R3Set(this.r3obj, R3TBASEA_ProgressIndicator, value, R3TID_OBJECT, 0);
- }
-
- function GetR3TBASEA_ProgressIndicator() {
- return R3ToJS(R3Get(this.r3obj, R3TBASEA_ProgressIndicator, R3TID_OBJECT, 0));
- }
-
- R3TBASEA_MaterialLayer = 336508;
- function SetR3TBASEA_MaterialLayer(value) {
- R3Set(this.r3obj, R3TBASEA_MaterialLayer, value, R3TID_OBJECT, 0);
- }
-
- function GetR3TBASEA_MaterialLayer() {
- return R3ToJS(R3Get(this.r3obj, R3TBASEA_MaterialLayer, R3TID_OBJECT, 0));
- }
-
-
-
- function r3Toolbase () {
- this.base = r3God;
- if(arguments.length) {
- this.base(R3CLID_TOOLBASE, arguments);
- }
- // Methods
- this.UPDATESELECTED=mR3TBASEM_UPDATESELECTED;
- this.APPLY=mR3TBASEM_APPLY;
- this.CREATECONTROLS=mR3TBASEM_CREATECONTROLS;
-
- // Attributes
- this.GetPrimLayer=GetR3TBASEA_PrimLayer;
- this.SetPrimLayer=SetR3TBASEA_PrimLayer;
- this.GetLayer=GetR3TBASEA_Layer;
- this.SetLayer=SetR3TBASEA_Layer;
- this.GetTool=GetR3TBASEA_Tool;
- this.GetControls=GetR3TBASEA_Controls;
- this.GetImageLayer=GetR3TBASEA_ImageLayer;
- this.SetImageLayer=SetR3TBASEA_ImageLayer;
- this.SetUnitConverter=SetR3TBASEA_UnitConverter;
- this.GetProgressIndicator=GetR3TBASEA_ProgressIndicator;
- this.SetProgressIndicator=SetR3TBASEA_ProgressIndicator;
- this.GetMaterialLayer=GetR3TBASEA_MaterialLayer;
- this.SetMaterialLayer=SetR3TBASEA_MaterialLayer;
- }
-
- r3Toolbase.prototype=new r3Root;
- // r3tbase.h_H